#ifndef QTBLINKEFFECT_H
#define QTBLINKEFFECT_H

#include "QtSingleAnimationEffect.h"

class QtBlinkEffect: public QtSingleAnimationEffect
{
public:
	QtBlinkEffect();
	QtBlinkEffect(const QtBlinkEffect& rhs);
	virtual ~QtBlinkEffect();

	void SetTarget(QtSprite *sprite);
	QtSprite* Target() const;


	void SetBlinkDuration(unsigned int newDuration);
	QtAnimationEffect* Clone() const;

protected:
	void SetupAnimation();

private slots:
	void Update(qreal value);

private:
	unsigned int blinkDuration;
	unsigned int blinks;
	qreal alpha;
	QtSprite *target;
};

#endif //QTBLINKEFFECT_H
